<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/css/icon-font.css}">
    <link rel="stylesheet" th:href="@{/lay/lib/layui-v2.5.5/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/lay/css/public.css}" media="all">
    <link rel="stylesheet" type="text/css" th:href="@{/lay/dist/notice.css}">

    <style>

        ._div{
            margin-bottom: 10px;
        }
    </style>


</head>
<body>
<input id="deId" th:value="${deId}" hidden>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <div style="margin: 10px 10px 10px 10px">
                <form class="layui-form layui-form-pane" action="">

                    <div class="layui-inline">
                        <label class="layui-form-label">任务名称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="eventName" placeholder="支持模糊查询" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">任务状态</label>
                        <div class="layui-input-inline">
                            <select name="state" >
                                <option value="">全部</option>
                                <option value="0">未领取</option>
                                <option value="1" >已领取</option>
                                <option value="2">已完成</option>
                                <option value="3">未完成</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-inline">
                        <button type="submit" class="layui-btn layui-btn-primary" lay-submit
                                lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索
                        </button></div>
                </form>
            </div>
        </fieldset>
        <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
                <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn" lay-event="selectAll">查询全部</button>
                <!--                <button class="layui-btn layui-btn-sm layui-btn-danger data-delete-btn" lay-event="selectNow">查询当天</button>-->
                <button class="layui-btn layui-btn-sm layui-btn-danger data-delete-btn" id="addButton"
                        lay-event="addInfo">添加信息
                </button>
            </div>
        </script>

        <table class="layui-hide" id="checkClass" lay-filter="currentTableFilter" style="display: none"></table>

        <script type="text/html" id="currentTableBar">
           {{# if(d.state==0){ }}<a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
           {{# } }}
          {{# if(d.state==1) { }}  <a class="layui-btn layui-btn-normal layui-btn-xs " style="background-color: lightsalmon" lay-event="dispose">处理</a>
           {{# } }}
            <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>
        </script>
    </div>
</div>


<script th:src="@{/lay/lib/jquery-3.4.1/jquery-3.4.1.min.js}"></script>
<script th:src="@{/lay/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
<script th:src="@{/js/learn/converterDate.js}"></script>
<script src="/js/learn/tool/addContainer.js"></script>
<script th:src="@{/js/departmentPublic/event/index.js}"></script>
<script th:src="@{/lay/dist/notice.js}"></script>
<script src="/js/learn/tool/toggle.js"></script>
<div class="layui-upload layui-form" lay-filter="form" id="addContainer" style="width: 510px; background-color: white; margin: 20px auto;display: none">
    <div class="_div">
        <div class="layui-inline _div">
            <label class="layui-form-label">任务名称</label>
            <div class="layui-input-inline">
                <input type="tel" name="eventName" style="width: 370px;" lay-verify="required|title" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline _div">
            <label class="layui-form-label">任务内容</label>
            <div class="layui-input-inline">
                <textarea type="tel" style="width: 370px;height: 100px" name="eventMess" lay-verify="required|mess" autocomplete="off"
                          class="layui-input"></textarea>
            </div>
        </div>
        <div class="layui-inline _div">
            <label class="layui-form-label">任务备注</label>
            <div class="layui-input-inline">
                <textarea type="tel" style="width: 370px;height: 50px" name="eventRemark"  autocomplete="off"
                          class="layui-input"></textarea>
            </div>
        </div>
    </div>
    <div class="_div">
        <div class="layui-inline">
            <label class="layui-form-label">任务积分</label>
            <div class="layui-input-inline">
                <input type="number"  min="1" name="eventScore" lay-verify="required|score" autocomplete="off" class="layui-input">
            </div>
        </div>
        <button style="margin-left: 20px" type="button" lay-submit lay-filter="saveBtn" class="layui-btn layui-btn-normal" id="submit">保存</button>
    </div>

</div>
</body>
</html>